package com.jy.rhin.support.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.net.URI;

/**
 * @Description: 消息通知feign
 * @Author: lww
 * @Date: 2022/7/28 10:21
 */
@FeignClient(name = "NotifyFeign", url = "EMPTY")
public interface NotifyFeign {

    /**
     * 动态url
     * @param uri
     * @param obj
     */
    @PostMapping
    void notify(URI uri, @RequestBody JSONObject obj);
}
